package com.example.husbandry_online.model;


public class User {
    String id;
    String username;
    String loginAcct;
    String telephone;
    String password;
    String code;
    String identity;
    int loginAcctType;

    public User(String telephone) {
        this.telephone = telephone;
    }

    public String getLoginAcct() {
        return loginAcct;
    }

    public void setLoginAcct(String loginAcct) {
        this.loginAcct = loginAcct;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public User(String id, String username, String telephoneOrId, String password, String code, String identity, int loginAcctType) {
        this.id = id;
        this.username = username;
        this.loginAcct = telephoneOrId;
        this.password = password;
        this.code = code;
        this.identity = identity;
        this.loginAcctType = loginAcctType;
    }

    public int getLoginAcctType() {
        return loginAcctType;
    }

    public void setLoginAcctType(int loginAcctType) {
        this.loginAcctType = loginAcctType;
    }

    public User(String id, String username, String telephoneOrId, String password, String code, String identity) {
        this.id = id;
        this.username = username;
        this.loginAcct = telephoneOrId;
        this.password = password;
        this.code = code;
        this.identity = identity;
    }

    public String getIdentity() {
        return identity;
    }

    public void setIdentity(String identity) {
        this.identity = identity;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getTelephoneOrId() {
        return loginAcct;
    }

    public void setTelephoneOrId(String telephone) {
        this.loginAcct = telephone;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public User(String id, String username, String telephoneOrId, String password, String code) {
        this.id = id;
        this.username = username;
        this.telephone = telephoneOrId;
        this.password = password;
        this.code = code;
    }
}
